<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/styles/regist.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-form/jquery.form.js"></script>
    <script src="/js/plugins/js-cookie/js.cookie.min.js"></script>
    <script src="/js/vue/md5.js"></script>
    <script type="text/javascript" src="/js/vue/common.js"></script>
    <script type="text/javascript" src="/js/system/regist.js"></script>

</head>
<body>
<script>
    $(function () {
        /*$.ajax({
            url:domainUrl + "/users/currentUser",
            type:"GET",
            data:{},
            beforeSend:function (xhr) {//请求发起前
                //xhr : 是ajax对象
                var token = getToken();
                //设置请求头
                xhr.setRequestHeader("token",token);
            },
            success:function (data) {
                console.log(data);
            }
        })*/


        // //封装之后的方法
        // ajaxGet("/users/currentUser",{},function (data) {
        //     console.log(data);
        // })

        //测试参数 解析器
        // ajaxGet("/travels/getUser"),{},function (data) {
        //     console.log(data);
        // }
        ajaxGet("/travels/updateUser"),{nickname: "dfasd"},function (data) {
            console.log(data);
        }
    })

</script>
</body>
</html>